package com.xunlai.infra.permission.manager.web.vo.role;

import com.xunlai.infra.permission.manager.web.vo.role.CreateRoleReqVo;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liang
 * @date 12/19/22 2:53 PM
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UpdateRoleReqVo extends CreateRoleReqVo implements Serializable {


    @Serial
    private static final long serialVersionUID = -7065734323192154899L;

    @NotNull(message = "主键不能为空",groups = {ValidRoleUpdateGroup.class,ValidSwitchRoleEnableGroup.class,ValidChangeRoleNameGroup.class})
    private Long id;


    public interface ValidRoleUpdateGroup{

    }
}
